/*
 * @Author: gitee 1758024667@qq.com
 * @Date: 2023-03-27 15:32:53
 * @LastEditors: gitee 1758024667@qq.com
 * @LastEditTime: 2023-04-04 15:23:03
 * @FilePath: \parking-lot-front-desk\src\api\detail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 根据id查询订单详情
export const getOrderById = function(params) {
  return request.get('/parting/tb-order/getOrderById?orderid='+params, {
  })
}

// 结束订单
export const finishOrder = function(params) {
  return request.get('/parting/tb-order/finishOrder?orderId='+params, {
    // 请求参数
  })
}

// 支付
export const payForOrder = function(params) {
  return request.get('/parting/tb-order/payForOrder?orderid='+params, {
    // 请求参数
  })
}

// 根据用户id查询
export const selectById = function(data) {
  return request.get('/user/selectById?id='+data, {
  })
}